package TextSubmit

import (
	"github.com/gogf/gf/v2/frame/g"
)

// TODO: 数据库加上和题目的关联;
type CodeTextSubmitReq struct {
	g.Meta   `path:"/api/submit/text" method:"post"`
	Qid      string `v:"required|length:10,10" p:"qid" dc:"用户Qid"`
	Name     string `v:"required|passport" p:"username" dc:"用户名"`
	Language string `v:"required" p:"language" dc:"语言"`
	Problem  string `v:"required" p:"problem" dc:"题目"`
	Code     string `v:"required" p:"code" dc:"代码"`
}

type CodeTextSubmitRes struct {
	Submitid int64 `json:"submitid"`
}
